package com.sixks.app.domain;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author colin
 * @date: 01/03/2014
 * @time: 22:22
 */
public class MemoryStore {

    private ConcurrentHashMap<String,ExpressUser> users = new ConcurrentHashMap<String,ExpressUser>();

    /**
     *
     * @param key
     * @param user
     */
    public void add(String key, ExpressUser user){
        this.users.put(key, user);
    }

    /**
     *
     * @param key
     * @return
     */
    public ExpressUser get(String key){
        return users.get(key);
    }
}
